﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterPage_New.master" AutoEventWireup="true" CodeBehind="CHRYList.aspx.cs" Inherits="HZ.Supervise.Web.Meet.CHRYList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li class="active"><a href="javascript:void(0)">参会人员列表</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <th>参会单位：
                            </th>
                            <td align="left">
                                <asp:TextBox ID="txtHName" runat="server"></asp:TextBox>
                            </td>
                             
                            <td>
                                <asp:Button ID="btnSearch" runat="server" CssClass="btn"
                                    OnClick="btnSearch_Click" Text=" 查 询 " />
                                &nbsp;&nbsp;&nbsp; 
                                <asp:Button ID="btnexcel" runat="server" CssClass="btn"  Text=" 导 出 " OnClick="btnexcel_Click" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvw" runat="server" AutoGenerateColumns="False" CssClass="mainlist" EmptyDataText="暂无相关数据显示" DataKeyNames="ID" 
        OnRowCancelingEdit="gvw_RowCancelingEdit" OnRowEditing="gvw_RowEditing" OnRowUpdating="gvw_RowUpdating">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1+AspNetPager1.PageSize*(AspNetPager1.CurrentPageIndex-1)  %>
                </ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField> 
            <asp:BoundField DataField="HosName" HeaderText="参会单位" ReadOnly="true"/>
            <asp:BoundField DataField="Name" HeaderText="姓名" ReadOnly="true" Visible="false"/>
            <asp:BoundField DataField="XB" HeaderText="性别" ReadOnly="true" Visible="false"/>
            <asp:BoundField DataField="Postion" HeaderText="职务" ReadOnly="true" Visible="false"/>
            <asp:BoundField DataField="TelNo" HeaderText="手机号码" ReadOnly="true" Visible="false"/>
            <asp:BoundField DataField="IsZS" HeaderText="是否住宿" ReadOnly="true" Visible="false"/>
            <asp:TemplateField HeaderText="姓名">
                <ItemTemplate>
                    <asp:Label ID="lbName" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="txtName" runat="server" Text='<%# Bind("Name") %>' MaxLength="20"></asp:TextBox>
                </EditItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="性别" HeaderStyle-Width="80px">
                <ItemTemplate>
                    <asp:Label ID="lbXB" runat="server" Text='<%# Bind("XB") %>'></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="txtXB" runat="server" Text='<%# Bind("XB") %>' MaxLength="1" Width="70px"></asp:TextBox>
                </EditItemTemplate>
            </asp:TemplateField>  
            <asp:TemplateField HeaderText="职务">
                <ItemTemplate>
                    <asp:Label ID="lbPostion" runat="server" Text='<%# Bind("Postion") %>'></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="txtPostion" runat="server" Text='<%# Bind("Postion") %>' MaxLength="30"></asp:TextBox>
                </EditItemTemplate>
            </asp:TemplateField> 
            <asp:TemplateField HeaderText="手机号码">
                <ItemTemplate>
                    <asp:Label ID="lbTelNo" runat="server" Text='<%# Bind("TelNo") %>'></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="txtTelNo" runat="server" Text='<%# Bind("TelNo") %>' oncontextmenu="javascript:return false;" onblur="javascript:return check_isnum();"  
                        onkeydown="javascript:return check_isnum();" MaxLength="11"></asp:TextBox>
                </EditItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="是否住宿" HeaderStyle-Width="80px">
                <ItemTemplate>
                    <asp:Label ID="lbIsZS" runat="server" Text='<%# Bind("IsZS") %>'></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="txtIsZS" runat="server" Text='<%# Bind("IsZS") %>' MaxLength="1" Width="70px"></asp:TextBox>
                </EditItemTemplate>
            </asp:TemplateField>  
            <asp:TemplateField HeaderText="操作" HeaderStyle-Width="80px">
                <EditItemTemplate>
                    <asp:LinkButton ID="lbnUpdate" runat="server" CausesValidation="True" CommandName="Update"
                        Text="更新" />
                    <asp:LinkButton ID="lbnCancel" runat="server" CausesValidation="False" CommandName="Cancel"
                        Text="取消" />
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:LinkButton ID="lbnEdit" runat="server" CausesValidation="True" CommandName="Edit" Text="编辑"/> 
                </ItemTemplate>
            </asp:TemplateField> 
            <asp:TemplateField>
                <HeaderTemplate>
                    <input id="addTable_chkAll" name="chkAll" type="checkbox" onclick="SelectAllCheckboxes(this, 'ctl00_ContentPlaceHolder1_gvw', 'addTable_chkAll'); " />
                </HeaderTemplate>
                <ItemTemplate>
                    <input type="checkbox" name="checkbox1" id="checkbox1" value='<%#Eval("ID")%>' 
                         onclick="chkChecked(this, 'ctl00_ContentPlaceHolder1_gvw', 'addTable_chkAll');" />
                </ItemTemplate>
                <HeaderStyle Width="25px" />
            </asp:TemplateField> 
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listctrl">
        <asp:Button ID="btnXu" runat="server" Text="填写培训内容需求" CssClass="btn" Width="150px" OnClick="btnXu_Click"/>&nbsp;&nbsp;
        <asp:Button ID="btnAdd" runat="server" Text="添加人员" CssClass="btn" OnClick="btnAdd_Click"/>&nbsp;&nbsp;
        <asp:Button ID="btnJian" runat="server" Text="删减人员" CssClass="btn" OnClick="btnJian_Click"/>
    </div>
</asp:Content>
